#define _CRT_SECURE_NO_WARNINGS

#include<iostream>
#include<string>
using namespace std;

void BibleSort(int arr[], int size)
{
	for (int i = 0; i < size - 1; i++)
	{
		bool flag = true;
		for (int j = 0; j < size - 1 - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int tmp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tmp;
				flag = false;
			}
		}
		if (flag)
			break;
	}
}

int main()
{
	int a = 66;
	string str = a + "";
	cout << str;
	int arr[] = { 5,1,3,7,9,4,6,5 };
	int n = sizeof(arr) / sizeof(arr[0]);
	BibleSort(arr, n);
	for (int i = 0; i < n; i++)
	{
		cout << arr[i] << " ";
	}
	cout << endl;
	return 0;
}